from selenium import webdriver
from selenium.webdriver.common.keys import Keys
 
chrome_options = webdriver.ChromeOptions()
driver = webdriver.Chrome(
    options=chrome_options
)
driver.get("https://www.baidu.com/")

search_input_box = driver.find_element_by_xpath('//*[@id="kw"]')
search_input_box.send_keys('益迪')
search_submit_button = driver.find_element_by_xpath('//*[@id="su"]')
search_submit_button.click()

# info_tab = driver.find_element_by_xpath('//a[text()="资讯"]')
import time
time.sleep(1)
info_tab = driver.find_element_by_xpath('//a[@class="s-tab-item s-tab-news"]')
# info_tab.click()
driver.execute_script("arguments[0].click();", info_tab)